package com.mls.fivedistrict.server;

import com.mls.fivedistrict.common.PageFilter;
import com.mls.fivedistrict.common.ServiceResponse;
import com.mls.fivedistrict.pojo.OrePool;
import com.mls.fivedistrict.pojo.ProductPlan;

import java.util.List;

/**
 * Created by chenxiuxiang on 2018/4/1.
 */
public interface ProductPlanService {

    int addProductPlan(ProductPlan productPlan);

    ServiceResponse editProductPlan(ProductPlan productPlan);

    ServiceResponse getProductPlan(PageFilter pageFilter);

    ServiceResponse getProductPlanDetail(Long productPlanId);

    /**
     * 获取产出任务使用的计划列表
     * @return
     */
    List<ProductPlan> getProductPlanByTask();

    /**
     * 通过产品ID获取矿池ID
     * @param productPlanId
     * @return
     */
    OrePool getPoolByProductId(Long productPlanId);

    ProductPlan getProductPlanById(Long productPlanId);

   void produceIntegral();
}
